<?php /*
 * Group Stream template file
 * This code is adapted from activity.php
 */
?>

<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
	<ul>

		<p id="stream_description">The Stream is an easy way to connect with anyone in this group. Use this Stream to post anything you would like the group to see whether, you are looking for housing, roommates, or just saying "Hey!"</p> 
		
		<?php do_action( 'bp_group_activity_syndication_options' ); ?>

		<li id="activity-filter-select" class="last">
			<label for="activity-filter-by"><?php _e( 'Show:', 'buddypress' ); ?></label> 
			<select id="activity-filter-by">
				<option value="-1"><?php _e( 'Everything', 'buddypress' ); ?></option>
				<option value="activity_update"><?php _e( 'Updates', 'buddypress' ); ?></option>
				<option value="joined_group"><?php _e( 'Group Memberships', 'buddypress' ); ?></option>

				<?php do_action( 'bp_group_activity_filter_options' ); ?>
			</select>
		</li>
	</ul>
</div><!-- .item-list-tabs -->

<?php do_action( 'bp_before_group_activity_post_form' ); ?>

<?php if ( is_user_logged_in() && bp_group_is_member() ) : ?>
	<?php locate_template( array( 'groups/single/post-form.php'), true ); ?>
<?php endif; ?>

<?php do_action( 'bp_after_group_activity_post_form' ); ?>
<?php do_action( 'bp_before_group_activity_content' ); ?>

<?php if( !bp_group_is_member() ) : ?>
	<div id="message" class="info">
		<p><?php _e( 'Join this group to post to the Stream!', 'buddypress' ); ?></p>
	</div>
<?php endif; ?>
<div class="activity single-group" role="main">
	<?php locate_template( array( 'activity/activity-loop.php' ), true ); ?>
</div><!-- .activity.single-group -->

<?php do_action( 'bp_after_group_activity_content' ); ?>
